package com.bbx.taxi.client.Task;

import android.app.Activity;

import com.bbx.androidapi.util.ToastUtil;
import com.bbx.api.sdk.model.passanger.CouponCountBuild;
import com.bbx.api.sdk.model.passanger.Return.CouponCount;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.base.JsonBuild;
import com.bbx.api.sdk.net.passeger.conn.CouponCountNet;
import com.bbx.taxi.client.Bean.Message.ObserverListener;
import com.bbx.taxi.client.Bean.Message.ObserverListener.DATA_TYPE;
import com.bbx.taxi.client.Bean.Message.Publisher;
import com.bbx.taxi.client.Task.BaseAsyncTask;
import com.bbx.taxi.client.MyApplication;
import com.bbx.taxi.client.R;
/** 
 * @Path com.bbx.taxi.client.Task.CouponCountTask.java
 * @Author 严旭文
 * @Date 2016-4-29 下午4:48:42
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 */
public class CouponCountTask  extends BaseTask{
    public DATA_TYPE TYPE=DATA_TYPE.COUPONCOUNT;
    private CouponCountBuild mCouponCountBuild;
	public CouponCountTask(Activity context) {
		super(context);
	    mCouponCountBuild = new CouponCountBuild(context);
		mCouponCountBuild.uid = MyApplication.getInstance().getUid();
		mCouponCountBuild.access_token = MyApplication.getInstance().getToken();
	}
	@Override
	public boolean isShow() {
		return false;
	}

	@Override
	public boolean isReturnString() {
		return false;
	}
	@Override
	public boolean condition() {
		// TODO Auto-generated method stub
		return true;
	}
	@Override
	public void request() {
		setType(TYPE,mCouponCountBuild);
	}
	@Override
	public void success(int status,Object object) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void failed(int status, String msg,String message) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public BaseNetwork getBaseNetwork() {
		return new CouponCountNet(context);
	}

}
